
public class Field {
	Integer fieldnum;
	
	public Field(Integer i) {
		fieldnum = i;
	}
	
	public void setNumber(Integer i) {
		fieldnum = i;
	}

	public Integer getNumber() {
		return fieldnum;
	}
	
	public Object clone() {
		return new Field(new Integer(fieldnum));
	}
	
	public boolean equals(Object o) {
		if(o.getClass() != this.getClass()) return false;
    	else {
    		Field other = (Field) o;
    		return other.getNumber().equals(fieldnum);
    	}
	}
	
	public String toString() {
		if(fieldnum == 0) return " ";
		else return fieldnum.toString();
	}
}
